{include file='pub/header'/}
<title>下载会员</title>
</head>
<body>
<div class="page-container">
    <form class="form form-horizontal" method="post">
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2">用户列表：</label>
            <div class="formControls col-xs-8 col-sm-9">
                {foreach $list as $k=>$v}
                <label><input type="radio" name="vip_code" value="{$k}">{$v}</label>
                {/foreach}
            </div>
        </div>
        <div class="row cl">
            <div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-2">
                <button class="btn btn-secondary radius" type="submit"><i class="Hui-iconfont">&#xe632;</i> 确定
                </button>
            </div>
        </div>
    </form>
</div>


{include file="pub/footer"/}
<script type="text/javascript">
    $(function () {
        $("form").validate({
            rules:{
                name:'required'
            },
            messages:{
                name:'用户不能为空'
            },
            submitHandler:function (form) {
                $(form).ajaxSubmit(function (res) {
                    if(res.code == 1){
                        parent.location.reload();
                    }else{
                        layer.msg(res.msg);
                    }
                })
            }
        });
    });
</script>
</body>
</html>